package com.nineclock.approve.service;

import com.nineclock.approve.dto.ApproveDefinitionResultDto;
import com.nineclock.approve.dto.ApproveDefinitionSaveDto;
import com.nineclock.approve.dto.ApproveGroupDefinitionDto;

import java.util.List;

public interface ApproveDefinitionService {
    /**
     * 查询流程定义列表
     *
     * @return
     */
    public List<ApproveGroupDefinitionDto> queryApproveGroupDefinition ();

    /**
     * 新增 & 修改
     * @param approveDefinitionSaveDto
     */
    void saveAndModifyQuote (ApproveDefinitionSaveDto approveDefinitionSaveDto);

    /**
     * 流程定义: 根据ID查询
     * @param id
     * @return
     */
    ApproveDefinitionResultDto queryById (String id);
}
